package com.weds.frame.auth.mapper;


import com.weds.frame.auth.entity.ScRole;
import com.weds.frame.auth.entity.ScRoleSearch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScRoleAuthMapper {

    List<ScRole> selectList(@Param("bsDeptId") Integer bsDeptId);

    List<ScRole> roleListFilter(@Param("bsDeptId") Integer bsDeptId);

    int deleteByPrimaryKey(Integer roleId);

    int insert(ScRole record);

    int insertSelective(ScRole record);

    ScRole selectByPrimaryKey(@Param("roleNo") String roleNo);

    int updateByPrimaryKeySelective(ScRole record);

    int updateByPrimaryKey(ScRole record);

    List<ScRole> selectRoleList(ScRoleSearch record);

    //日志使用
    String getRoleName(@Param("roleNo") String roleNo);

    List<ScRole> selectListByModule(@Param("serverModule") String serverModule);

    List<ScRole> selectListComm(@Param("serverModule") String serverModule);

    List<ScRole> listCommDormWarn(@Param("serverModule") String serverModule);

    ScRole selectRoleByNo(@Param("roleNo") String roleNo);

    List<ScRole> getAllRoleList(ScRoleSearch search);

    Integer selectByName(@Param("client") String client, @Param("roleName") String roleName, @Param("roleNo") String roleNo);


}